<style type="text/css">
#newslist li {height: 35px;line-height: 35px;padding: 0px 15px;border-bottom: 1px solid #f5f5f5;font-size: 13px;position: relative;}
#newslist li span {float: right;color: #999;}
</style>
<div class="dux-tools">
  <div class="bread-head">管理首页 <span class="small">站点运行信息</span> </div>
</div>
<div class="admin-main"> 
  <!--[if lte IE 8]>
<script src="/public/js/chart/excanvas.compiled.js"></script>
<![endif]-->
  <div class="line-big">
    <div class="xm12">
      <div class="alert alert-yellow"><strong>提示：</strong>尊敬的{$user.user}(管理员)，欢迎您的使用，您的本次登录时间为 为：{$php( echo date('Y-m-d H:i:s',$user['logintime']))}，登录IP为 {$user.ip} </div>
    </div>
  </div>
  <div class="line-big">
    <div class="xm3">
      <div class="panel dux-box dux-dashboard">
        <div class="clearfix">
          <div class="media media-x ">
            <div class="float-left">
              <div class="txt dashboard-head radius-small bg-red  icon-dashboard"></div>
            </div>
            <div class="media-body text-center">
              <h2><strong><?php echo $prevday_content_count-$prevday_product_count; ?>/<?php echo $content_count-$product_count; ?></strong></h2>
              昨日新增 / 文章总数 </div>
          </div>
        </div>
      </div>
      <br>
    </div>
    <div class="xm3">
      <div class="panel dux-box dux-dashboard">
        <div class="clearfix">
          <div class="media media-x ">
            <div class="float-left">
              <div class="txt dashboard-head radius-small bg-yellow icon-bar-chart-o"></div>
            </div>
            <div class="media-body text-center">
              <h2><strong>{$prevday_product_count}/{$product_count}</strong></h2>
              昨日新增 / 产品总数 </div>
          </div>
        </div>
      </div>
      <br>
    </div>
    <div class="xm3">
      <div class="panel dux-box dux-dashboard">
        <div class="clearfix">
          <div class="media media-x ">
            <div class="float-left">
              <div class="txt dashboard-head radius-small bg-blue icon-paw"></div>
            </div>
            <div class="media-body text-center">
              <h2><strong>{$tags_count}</strong></h2>
              TAG标签数 </div>
          </div>
        </div>
      </div>
      <br>
    </div>
    <div class="xm3">
      <div class="panel dux-box dux-dashboard">
        <div class="clearfix">
          <div class="media media-x ">
            <div class="float-left">
              <div class="txt dashboard-head radius-small bg-green icon-puzzle-piece"></div>
            </div>
            <div class="media-body text-center">
              <h2><strong>{$links_count}</strong></h2>
              友链数 </div>
          </div>
        </div>
      </div>
    </div>
    <br>
  </div>
  <div class="line-big">
    <div class="xm12">
      <div class="panel dux-box">
        <div class="panel-head">百浪动态</div>
        <div class="panel-body">
          <div style="height:200px;">
            <div id="newslist" data-newslisturl="http://www.baiila.com?c=article&a=type&tid=9&action=json&listnum=6">
          </div>
        </div>
      </div>
    </div>
  </div>
  
</div>
<script language="javascript">
function getdata(){
	var url = $('#newslist').attr("data-newslisturl");
	$('#newslist').html('Loading...');
	$.ajax({
		url: url,
		type: 'GET',
		dataType: 'jsonp',
		jsonp: 'jsoncallback',
		success: function(data) {
			$('#newslist').empty();
			$('#newslist').html(data.msg);
		}
	});
}
getdata();
</script>